﻿using System;
using HmFramework.Net.Monitoring.Server;

namespace CuteSprite.Eme.MIS.Server
{
	/// <summary>BsdMis server session.</summary>
	public partial class BsdMisSession : MisSession<BsdMisServer, BsdMisSession>
	{
		/// <summary>命令</summary>
		/// <param name="cmd"></param>
		/// <param name="cmdTag"></param>
		/// <param name="args"></param>
		/// <param name="readNextCommand"></param>
		/// <returns></returns>
		protected override bool ProcessCustomCmd(string cmd, string cmdTag, string args, ref bool readNextCommand)
		{
			Boolean flag = true;
			switch (cmd)
			{
				#region -- 快件 --

				case "GRANTEXPRESSSTAFF":
					GrantExpressStaff(cmdTag, args);
					break;

				case "GETEXPRESSSTAFF":
					GetExpressStaff(cmdTag, args);
					break;

				case "BATCHUPDATEEXPRESSSTATUS":
					BatchUpdateExpressStatus(cmdTag, args);
					break;

				case "BATCHUPDATEEXPRESSOPERATIONSTATUS":
					BatchUpdateExpressOperationStatus(cmdTag, args);
					break;

				case "GETEXPRESSLASTSTATUS":
					GetExpressLastStatus(cmdTag, args);
					break;

				case "CHECKEXPRESSEXIST":
					CheckExpressExist(cmdTag, args);
					break;

				case "BATCHUPDATESETTLEMENTS":
					BatchUpdateSettlements(cmdTag, args);
					break;

				case "MAKEEXPRESSNEXTNO":
					MakeExpressNextNo(cmdTag, args);
					break;

				case "BATCHUPDATECUSTOMERSELFSTATUS":
					BatchUpdateCustomerSelfStatus(cmdTag, args);
					break;

				#endregion

				default:
					flag = base.ProcessCustomCmd(cmd, cmdTag, args, ref readNextCommand);
					break;
			}
			return flag;
		}
	}
}
